﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MG.HomeO2O.DAL;
using MG.HomeO2O.Model;
namespace MG.HomeO2O.BLL
{
    public class UsersBLL
    {
        UsersDAL dal = new UsersDAL();
        /// <summary>
        /// 登录信息
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public Users Login(string Uname, string  Upwd)
        {
            return dal.Login(Uname, Upwd);
        }
        /// <summary>
        /// 注册信息
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public int add(Users p)
        {
            return dal.add(p);
        }
        ///// <summary>
        ///// 判断用户名是否存在
        ///// </summary>
        ///// <param name="name"></param>
        ///// <returns></returns>
        //public int exit(string name)
        //{
        //    return dal.exit(name);
        //}
    }
}
